cmake_minimum_required(VERSION 3.12)
project(cpp11)


set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS " /MDd /std:c++11 /EHsc")
set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "")


message("current dir"  ${CMAKE_CURRENT_SOURCE_DIR})
message(info ${SOURCE})
link_directories("./third/jsoncpp/lib/")
link_directories("../../../obj/")
link_directories("./third/gtest/lib")

link_libraries(generallib)
# link_libraries(jsoncpp)

include_directories("./third/jsoncpp/include/json")
include_directories("../../../obj/inc/")
include_directories("./third/gtest/include")

add_executable(ringbuffer ringbuffer_test.cpp )
add_executable(cpp11 cpp11_test.cpp )
add_executable(gtest gtest.cpp )
add_executable(thread_test thread_usage.cpp threadpool.cpp)
add_executable(log_test.cpp log_test.cpp)
add_executable(template_test  template.cpp)

